2-d numbers, practical applications


to include numbers outside the reference square



(not working yet, use document version 2)




1.

reference cube, 0 to 390 in each dimension



scalex = 2 * abs(x - 195) 
scaley = 2 * abs(y - 195) 
scalez = 2 * abs(z - 195) 
 ..
 ..



scalenum = max(scalex, scaley, scalez, ...)


	x2 = x / scalenum
	y2 = y / scalenum
	z2 = z / scalenum
	 ..
	 ..




	calculate the 2-d number from the x2, y2, z2 etc. figures

		(using conversion rountines that operate with values from 0 to 1.0)

	or, conversion routines that operate with 'scalenum'


2.


record the number as scale, 2-d_num



	e.g

		2.5, 4124124



The first number is a normal base-10 decimal number




3.

converting back


	x1 = (x - 0.5) * scalenum
	y1 = (y - 0.5) * scalenum
	z1 = (z - 0.5) * scalenum
	 ..
 	 ..


using conversion routines to extract the x, y, z values from the 2-d number, (returning results 

	in the range 0 to 1.0)






		



